package com.aaa.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;

/**
 * Table: sms_coupon
 */
@Data
public class SmsCoupon implements Serializable {
    /**
     * Table:     sms_coupon
     * Column:    id
     * Nullable:  false
     */
    private Long id;

    /**
     * Table:     sms_coupon
     * Column:    shop_id
     * Nullable:  true
     */
    private Long shopId;

    /**
     * 优惠卷类型；0->全场赠券；1->会员赠券；2->购物赠券；3->注册赠券
     *
     * Table:     sms_coupon
     * Column:    type
     * Nullable:  true
     */
    private Integer type;

    /**
     * Table:     sms_coupon
     * Column:    name
     * Nullable:  true
     */
    private String name;

    /**
     * 使用平台：0->全部；1->移动；2->PC
     *
     * Table:     sms_coupon
     * Column:    platform
     * Nullable:  true
     */
    private Integer platform;

    /**
     * 数量
     *
     * Table:     sms_coupon
     * Column:    count
     * Nullable:  true
     */
    private Integer count;

    /**
     * 金额
     *
     * Table:     sms_coupon
     * Column:    amount
     * Nullable:  true
     */
    private BigDecimal amount;

    /**
     * 每人限领张数
     *
     * Table:     sms_coupon
     * Column:    per_limit
     * Nullable:  true
     */
    private Integer perLimit;

    /**
     * 使用门槛；0表示无门槛
     *
     * Table:     sms_coupon
     * Column:    min_point
     * Nullable:  true
     */
    private BigDecimal minPoint;

    /**
     * Table:     sms_coupon
     * Column:    start_time
     * Nullable:  true
     */
    private Date startTime;

    /**
     * Table:     sms_coupon
     * Column:    end_time
     * Nullable:  true
     */
    private Date endTime;

    /**
     * 使用类型：0->全场通用；1->指定分类；2->指定商品
     *
     * Table:     sms_coupon
     * Column:    use_type
     * Nullable:  true
     */
    private Integer useType;

    /**
     * 备注
     *
     * Table:     sms_coupon
     * Column:    note
     * Nullable:  true
     */
    private String note;

    /**
     * 发行数量
     *
     * Table:     sms_coupon
     * Column:    publish_count
     * Nullable:  true
     */
    private Integer publishCount;

    /**
     * 已使用数量
     *
     * Table:     sms_coupon
     * Column:    use_count
     * Nullable:  true
     */
    private Integer useCount;

    /**
     * 领取数量
     *
     * Table:     sms_coupon
     * Column:    receive_count
     * Nullable:  true
     */
    private Integer receiveCount;

    /**
     * 可以领取的日期
     *
     * Table:     sms_coupon
     * Column:    enable_time
     * Nullable:  true
     */
    private Date enableTime;

    /**
     * 优惠码
     *
     * Table:     sms_coupon
     * Column:    code
     * Nullable:  true
     */
    private String code;

    /**
     * 可领取的会员类型：0->无限时
     *
     * Table:     sms_coupon
     * Column:    member_level
     * Nullable:  true
     */
    private Integer memberLevel;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table sms_coupon
     *
     * @mbg.generated Mon Jan 06 19:35:03 CST 2020
     */
    private static final long serialVersionUID = 1L;
}